#include <stdio.h>

int create_process(char* program, char** arg_list) {
  pid_t child_pid;
  child_pid = fork();

  if (child_pid != 0) {
    return child_pid;
  } else {
    execvp(program, arg_list);
    exit(1)
  }
}

int main(int argc, char const* argv[]) {
  char* arg_list[] = {"ls", "-l", "/etc/", NULL};
  create_process("ls", arg_list);

  return 0;
}
